<!DOCTYPE html>
<html>
<head>
    <title>rfid报警记录</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <a class="btn btn-primary" @click="closeWarn"><i class="fa fa-close"></i>&nbsp;关闭报警</a>
            <a class="btn btn-primary" @click="warnConfig"><i class="fa fa-plus"></i>&nbsp;报警配置</a>
            <#if shiro.hasPermission("warn:brfidwarn:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
        </#if>
        <#if shiro.hasPermission("warn:brfidwarn:delete")>
        <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
    </#if>
</div>
<table id="jqGrid"></table>
<div id="jqGridPager"></div>
</div>

<div v-show="!showList && showConf" class="panel panel-default">
    <div class="panel-heading">{{title}}</div>
    <form class="form-horizontal">

        <div class="form-group">
            <div class="col-sm-2 control-label"></div>
            <input type="button" class="btn btn-primary" @click="closeWarn" value="关闭报警"/>
        </div>

    </form>
</div>
<div v-show="!showConf" class="panel panel-default">
    <div class="panel-heading">{{title}}</div>
    <form class="form-horizontal">

        <div class="form-group">
            <div class="col-sm-12 control-label" style="text-align: center">
                <el-checkbox-group v-model="bRfidWarnConf.type">
                    <el-checkbox v-for="item in warnConf" :key="item.code" :label="item.code">{{item.message}}
                    </el-checkbox>
                </el-checkbox-group>
            </div>

        </div>
        <div class="form-group">
            <div class="col-sm-12 control-label" style="text-align: center" >
                <input type="button" class="btn btn-primary" @click="saveConf" value="保存"/>
            </div>
        </div>

    </form>
</div>
</div>

<script src="${request.contextPath}/statics/js/modules/warn/brfidwarn.js?_${.now?long}"></script>
</body>
<style>

</style>
</html>